package com.iwhalecloud.bss.kite.cucc.common.mq.serializer;

/**
 * Serializer
 *
 * @author Linjj
 */
public interface Serializer {

    /**
     * 序列化
     *
     * @param object
     * @return
     */
    public byte[] serialize(Object object);

    /**
     * 反序列化
     *
     * @param bytes
     * @return
     */
    public Object deserialize(byte[] bytes);
}
